import ImageError from './module/ImageError'
import dialogDrag from './dialog/drag'
import dialogDragWidth from './dialog/dragWidth'
import dialogDragHeight from './dialog/dragHeight'
// 按钮防抖处理
import antishake from './module/antishake'

const install = function (Vue) {
  Vue.directive('ImageError', ImageError)
  Vue.directive('dialogDrag', dialogDrag)
  Vue.directive('dialogDragWidth', dialogDragWidth)
  Vue.directive('dialogDragHeight', dialogDragHeight)
  // 按钮防抖处理
  Vue.directive('antishake', antishake)
}

// if (window.Vue) {
//   window['ImageError'] = ImageError
//   Vue.use(install)
// }

export default install
